Skip to content

auto-task(BlochSphere): drop unused BargmannInvariant import - #1309

Closed
jstoobysmith wants to merge 1 commit into
leanprover-community:masterfrom
jstoobysmith:auto-importminimizer-20260629-050716
Closed

auto-task(BlochSphere): drop unused BargmannInvariant import#1309
jstoobysmith wants to merge 1 commit into
leanprover-community:masterfrom
jstoobysmith:auto-importminimizer-20260629-050716

Conversation

@jstoobysmith

Copy link
Copy Markdown
Member

Minimize imports of QuantumInfo/States/Pure/BlochSphere.lean

What changed

Removed one unused import from QuantumInfo/States/Pure/BlochSphere.lean:

  • public import QuantumInfo.States.Pure.BargmannInvariant

The file defines BlochSphere, blochPoint, solidAngle, and the
supporting lemmas purely in terms of Mathlib's EuclideanSpace,
WithLp.equiv, Matrix.crossProduct (the ⨯₃ notation), dotProduct,
and Complex/Real API. It references no declaration from
QuantumInfo.States.Pure.BargmannInvariant (or its transitive
Braket content), so that import is dead weight.

What was kept and why

Both remaining imports are used directly and are required for the build:

  • Mathlib.LinearAlgebra.CrossProduct — provides the ⨯₃ cross-product
    notation used in solidAngle. Removing it breaks parsing.
  • Mathlib.Analysis.InnerProductSpace.PiL2 — provides EuclideanSpace,
    WithLp.equiv, EuclideanSpace.dist_eq/norm_eq. Removing it makes
    EuclideanSpace unknown.

I verified each by removing it individually and confirming the build fails,
so no further import could be trimmed.

Downstream impact

None. BlochSphere.lean has no importers in the repository, so no
downstream file needed a compensating import.

Verification

lake build QuantumInfo completes successfully (8636 jobs) with no
sorry, no new axioms, and no new errors or warnings. Only import
lines were touched; no code, docstrings, or declarations were modified.

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for this PR, which will now be reviewed. If submitting to ./Physlib or ./QuantumInfo, please see our review guidelines if you are not familiar with the process. You should expect a back and forth with a reviewer before your PR is merged. See also that link for how to add appropriate labels to your PR. The PR will also go through a number of automated checks. You can learn more about these here, including how to run them locally.

If you are submitting to ./PhyslibAlpha there will be a lighter review process, though your PR must still pass the automated checks.

If you want to bring attention to this PR, please write a message on this thread of the Lean Zulip.

Important: If a reviewer adds an awaiting-author label to your PR, once you have addressed the review comments, please remove that label by adding a comment with -awaiting-author. This helps us keep track of reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant